﻿using System;
namespace JuCloudy.Data.Linq
{
    interface ISysContainer
    {
        SysContextDataContext context { get; }
        System.Collections.Generic.List<SysAppInfo> DeleteAppInfo(SysAppInfo entity);
        System.Collections.Generic.List<SysCategory> DeleteCategory(SysCategory entity);
        System.Collections.Generic.List<SysStructure> DeleteStructure(SysStructure entity);
        System.Collections.Generic.List<SysAppInfo> GetAppInfoEntities();
        SysAppInfo GetAppInfoEntity(int AppInfoId);
        System.Collections.Generic.List<SysAppModule> GetAppModuleEntities(bool? IsEnable);
        SysAppModule GetAppModuleEntity(int AppModuleId);
        System.Collections.Generic.List<SysCategory> GetCategoryEntities();
        SysCategory GetCategoryEntity(int CategoryId);
        SysAppModule GetNewestAppModuleEntity(int AppId);
        System.Collections.Generic.List<SysStructure> GetStructureEntities();
        SysStructure GetStructureEntity(int StructureId);
        System.Collections.Generic.List<ViewSysStructureAndCategoryAndAppInfo> GetViewEntities();
        ViewSysStructureAndCategoryAndAppInfo GetViewEntity(int StructureId);
        System.Collections.Generic.List<SysAppInfo> InsertAppInfo(SysAppInfo entity);
        int InsertAppModule(SysAppModule entity);
        System.Collections.Generic.List<SysCategory> InsertCategory(SysCategory entity);
        System.Collections.Generic.List<SysStructure> InsertStructure(SysStructure entity);
    }
}
